#ifndef CARD_H
#define CARD_H


const int CARD_INNER_WIDTH = 3;
const int CARD_INNER_HEIGHT = 3;

const char FILLER_BACK = char(178);
const char FILLER_FRONT = char(0);


const char RANK_SYMBOL[14] = {
		{ 'J' }, //JOKER, UNUSED but it's the default value. If you see a J, run for your life.
		{ 'A' }, //ACE
		{ '2' }, //TWO
		{ '3' }, //THREE
		{ '4' }, //FOUR
		{ '5' }, //FIVE
		{ '6' }, //SIX
		{ '7' }, //SEVEN
		{ '8' }, // EIGHT
		{ '9' }, //NINE
		{ 'T' }, //TEN
		{ 'J' }, //JACK
		{ 'Q' }, //QUEEN
		{ 'K' } //KING
};


struct card
{
	int rank;
	char suit;
	bool isFaceUp;
};

void Initialize(card& c, char suit, int rank, bool isFaceUp);
//void Initialize(card& c);
void FillCard(const card& c, int xPos, int yPos, bool isEmptyCard = false);
void Display(const card& c, int xPos, int yPos, bool isEmptyCard = false, bool isShortVersion = false);
void DisplayCardBorder(int xPos, int yPos, bool isEmptyCard = false);
void PlaceChar(const char& ch, int xPos, int yPos);
void SetCursorPosition(int x, int y);
void Flip(card& c, bool flipUp);


#endif